const fs = require('fs');
const path = require('path');
const distPath = path.join(__dirname, 'dist/nevegy/browser/index.html');
const timestamp = Date.now();

let html = fs.readFileSync(distPath, 'utf-8');
html = html.replace(/href="(tailwind\.css)"/, `href="$1?v=${timestamp}"`);
html = html.replace(/href="(external-module\.css)"/, `href="$1?v=${timestamp}"`);
fs.writeFileSync(distPath, html);
console.log('样式文件已添加时间戳');
